package com.wuhunyu.client;

import com.wuhunyu.client.err.OrderServiceClientErr;
import com.wuhunyu.commonutils.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 订单模块服务
 *
 * @author wuhunyu
 * @version 1.0
 * @date 2021-01-27 10:38
 */
@FeignClient(name = "service-order", fallback = OrderServiceClientErr.class)
@Component
public interface OrderServiceClient {

    /**
     * 查询课程的支付状态
     *
     * @param courseId
     * @param memberId
     * @return
     */
    @PostMapping("/order/selectOrderStatus")
    public CommonResult selectOrderStatus(@RequestParam("courseId") String courseId, @RequestParam("memberId") String memberId) ;

}
